<?php

use yii\helpers\Html;


$this->title = '每天的团队列表';

?>

<style type="text/css">
	.content-view{border:1px solid #39B1FF;margin-bottom: 5px;}
	.content-view .view-one{margin:5px;}
</style>

<div class="box">
    <div class="box-header">
    	<div class="modal-header">
	      <button type="button" class="close" data-dismiss="modal" aria-label="Close">
	        <span aria-hidden="true">&times;</span>
	      </button>
	      <h4 class="modal-title"><?=$this->title?> —— 日期：<?=$day?></h4>
	  </div>
    </div>
    <div class="box-body"> 	
    	<div class="content">
    		 <?php if($model){ ?>
    		 	  <?php foreach($model as $product){ ?>
    		 	  	<div class="content-view">

	                    <div class="row view-one">
	                        <div class="col-md-4">
	                            <label>客户名称：</label><?=$product->customer->name?>
	                        </div> 
	                        <div class="col-md-4">
	                            <label>团队名称：</label><?=$product->name?>
	                        </div>  
	                        <div class="col-md-4">
	                            <label>团号：</label><?=$product->code?>
	                        </div>     
	                    </div> 
	              
	                    <div class="row view-one">
	                        
	                        <div class="col-md-4">
	                            <label>目的地城市：</label><?=$product->cityInfo?>
	                        </div>  
	                        <div class="col-md-4">
	                            <label>抵达日期：</label><?=$product->begin_date?>
	                        </div>     
	                        <div class="col-md-4">
	                            <label>离开日期：</label><?=$product->end_date?>
	                        </div> 
	                    </div> 

	                    <div class="row view-one">
	                        <div class="col-md-4">
	                            <label>团人数：</label><?=$product->num?> 人
	                        </div> 
	                        <div class="col-md-4">
	                            <label>总收入：</label><?=$product->price?>
	                        </div>  
	                        <div class="col-md-4">
	                            <label>总成本：</label><?=$product->costPrice?>
	                        </div>     
	                    </div> 

	                    <div class="row view-one">
	                        <div class="col-md-4">
	                            <label>状态：</label><?=isset(Yii::$app->params['product_status'][$product->status])?Yii::$app->params['product_status'][$product->status]:''?>
	                        </div> 
	                        <div class="col-md-4">
	                            <label>开团人：</label><?=$product->userName?>
	                        </div>  
	                        <div class="col-md-4">
	                            <label>指定操作：</label><?=$product->operName?>
	                        </div>     
	                    </div> 

	                    <div class="row view-one">
	                        <div class="col-md-4">
	                            <label>创建时间：</label><?=$product->created_at?>
	                        </div> 
	                        <div class="col-md-4">
	                            <label>更新时间：</label><?=$product->updated_at?>
	                        </div>  
	                        <div class="col-md-4">
	                            <label>备注：</label><?=$product->remark?>
	                        </div>     
	                    </div> 

            		</div>  
    		 	  <?php }?>	
    		 <?php }?>
    	</div>
	</div>
</div>